//
//  UIFactory.h
//  FarmerOrchard
//
//  Created by Ken Zhang on 14-9-17.
//  Copyright (c) 2014年 Ken Zhang. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface UIFactory : NSObject

//创建一个ImageView
+(UIImageView *)makeImageView:(NSString*)aImageName;

//创建一个button，
+(UIButton*)makeButton:(NSString*)aTitle font:(float)aFont  backColor:(UIColor*)aBackColor  target:(id)aTarget action:(SEL)aMethod;
//创建一个label
+(UILabel*)makeLabel:(NSString*)aText textColor:(UIColor*)aColor font:(float)aFont backColor:(UIColor*)aBackColor alignment:(NSTextAlignment)aTextAlignment;

//创建一个UIView
+(UIView*)makeView:(UIColor*)color;

//创建一个输入框
+(UITextField *) makeTextField:(UIColor *)color textHolder:(NSString *)placeHolder keyBoardType:(UIKeyboardType)keyBoard clearBtn:(UITextFieldViewMode)clearBtnMode textFieldDelegate:(id<UITextFieldDelegate>)tDelegate;

//创建一个textView
+(UITextView *)makeTextView:(UIColor *)color Delegate:(id<UITextViewDelegate>)tDelegate;

+(UIImage *)imageWithColor:(UIColor *)color;


@end
